Part Number Hot Search : 
ADT6504 DC608F EKMQ401 TW8826 TO220 91000 04300 CMDZ4L7
Product Description
Full Text Search
 

To Download CY7C63001C-SXCT Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  universal serial bus microcontrolle r cy7c63001c cy7c63101c cypress semiconductor corporation ? 198 champion court ? san jose , ca 95134-1709 ? 408-943-2600 document #: 38-08026 rev. *b revised november 28, 2005 1.0 features ? low-cost solution for low-speed usb peripherals such as mouse, joystick, and gamepad ? usb specification compliance ? conforms to usb 1.5 mbps specification, version 1.1 ? supports 1 device address and 2 endpoints (1 control endpoint and 1 data endpoint) ? 8-bit risc microcontroller ? harvard architecture ? 6-mhz external ceramic resonator ? 12-mhz internal operation ? usb optimized instruction set ? internal memory ? 128 bytes of ram ? 4 kbytes of eprom ? integrated usb transceiver ? up to 16 schmitt trigger i/o pins with internal pull-up ? up to 8 i/o pins with led drive capability ? special purpose i/o mode supports optimization of photo transistor and led in mouse application ? maskable interrupts on all i/o pins ? 8-bit free-running timer ? watch dog timer (wdt) ? internal power-on reset (por) ? instant-on now? for suspend and periodic wake-up modes ? improved output drivers to reduce emi ? operating voltage from 4.0v to 5.25 vdc ? operating temperature from 0 to 70 degree celsius ? available in space saving and low cost 20-pin pdip, 20-pin soic, and 24-pin qsop packages ? industry standard programmer support 8-bit timer logic block diagram usb d+,d? port p0.0?p0.7 interrupt controller 0 port p1.0?p1.7 1 8-bit risc osc ram 128-byte eprom 2/4 kbyte core power- on reset engine watch timer dog 6-mhz ceramic resonator instant-on now? r/c ext v cc /v ss
cy7c63001c cy7c63101c document #: 38-08026 rev. *b page 2 of 28 2.0 pin configurations 3.0 functional overview the cy7c630/101c is a family of 8-bit risc one time programmable (otp) microcontro llers with a built-in 1.5-mbps usb serial interface engine (sie). the microcontroller features 35 instructions that are optimized for usb applica- tions. in addition, the microcontroller features 128 bytes of internal ram and 4 kbytes of program memory space. the cypress usb controller accept s a 6-mhz ceramic resonator as its clock source. this clock signal is doubled within the chip to provide a 12- mhz clock for the microprocessor. the microcontroller features two ports of up to sixteen general purpose i/os (gpios). each gpio pin can be used to generate an interrupt to the microcontroller. additionally, all pins in port 1 are equipped wit h programmable drivers strong enough to drive leds. the gpio ports feature low emi emissions as a result of controlled rise and fall times and unique output driver circuits . the cypress microcontrollers have a range of gpios to fit various applications; the cy7c63001c has twelve gpios and the cy7c63101c has sixteen gpios. notice that each part has eight ?low-current? ports (port 0) with the remaining ports (port 1) being ?high-current? ports. the 12-gpio cy7c63001c is available in 20-pin pdip (-pxc) and 20-pin soic (-sxc) packages. the 16-gpio cy7c63101c is available in 24-pin qsop (-qxc) package. 1 2 3 4 5 6 7 9 13 14 15 16 17 18 20 19 p0.0 p0.1 p0.2 p0.3 p1.0 p1.2 v ss cext p0.4 p1.1 p0.6 p0.7 d+ p1.3 d? v cc dip/soic 12 p0.5 8 v pp xtalin xtalout 10 11 1 2 3 4 5 6 9 11 15 16 17 18 19 20 22 21 p0.0 p0.1 p0.2 p0.3 p1.0 p1.2 v ss cext p0.6 p1.5 p1.1 p1.3 d+ p1.7 d? v cc 24-pin 14 p0.7 10 v pp xtalin xtalout 12 13 7 8 p1.4 p1.6 24 23 p0.4 p0.5 soic/qsop 20-pin (top view) 4.0 pin definitions name i/o 20-pin 24-pin die pad # description p0.0 i/o 1 1 1 port 0 bit 0 p0.1 i/o 2 2 2 port 0 bit 1 p0.2 i/o 3 3 3 port 0 bit 2 p0.3 i/o 4 4 4 port 0 bit 3 p0.4 i/o 20 24 24 port 0 bit 4 p0.5 i/o 19 23 23 port 0 bit 5 p0.6 i/o 18 22 22 port 0 bit 6 p0.7 i/o 17 21 21 port 0 bit 7 p1.0 i/o 5 5 5 port 1 bit 0 p1.1 i/o 16 20 20 port 1 bit 1 p1.2 i/o 6 6 6 port 1 bit 2 p1.3 i/o 15 19 19 port 1 bit 3 p1.4 i/o ? 7 7 port 1 bit 4 p1.5 i/o ? 18 18 port 1 bit 5 p1.6 i/o ? 8 8 port 1 bit 6 p1.7 i/o ? 17 17 port 1 bit 7 xtalin i 10 12 12 ceramic resonator in xtalout o 11 13 13 ceramic resonator out
cy7c63001c cy7c63101c document #: 38-08026 rev. *b page 3 of 28 6.0 functional description the cypress cy7c630/101c usb microcontrollers are optimized for human-interface computer peripherals such as a mouse, joystick, and gamepad. these usb microcontrollers conform to the low-speed (1.5 mbps) requirements of the usb specification version 1.1. each microcontroller is a self-contained unit with: a usb interface engine, usb trans- ceivers, an 8-bit risc microcontroller, a clock oscillator, timers, and program memory. ea ch microcontroller supports one usb device address and two endpoints. the 6-mhz clock is doubled to 12 mhz to drive the microcon- troller. a risc architecture with 35 instructions provides the best balance between performance and product cost. 6.1 memory organization the memory in the usb controller is organized into user program memory in eprom sp ace and data memory in sram space. 6.1.1 program memory organization the cy7c63001c and cy7c63101c each offer 4 kbytes of eprom. the program memory space is divided into two functional groups: interrupt vectors and program code. the interrupt vectors occupy the first 16 bytes of the program space. each vector is 2 bytes long. after a reset, the program counter points to location zero of the program space. figure 6-1 shows the organization of the program memory space. 6.1.2 security fuse bit the cypress usb microcontroller includes a security fuse bit. when the security fuse is programmed, the eprom program memory outputs 0xff to the eprom programmer, thus protecting the user?s code. cext i/o 9 11 11 connects to external r/c timing circuit for optional ?suspend? wakeup d+ i/o141616usb data+ d? i/o131515usb data? v pp ? 8 10 10 programming voltage supply, tie to ground during normal operation v cc ? 12 14 14 voltage supply v ss ?799ground 4.0 pin definitions (continued) name i/o 20-pin 24-pin die pad # description 5.0 pin description name description v cc 1 pin. connects to the usb power source or to a nominal 5v power supply. actual v cc range can vary between 4.0v and 5.25v. v ss 1 pin. connects to ground. v pp 1 pin. used in programming the on-chip eprom. this pi n should be tied to ground during normal operations. xtalin 1 pin. input from an external ceramic resonator. xtalout 1 pin. return path for the ceramic resonator (leave unconnected if driving xtalin from an external oscillator). p0.0?p0.7, p1.0?p1.7 16 pins. p0.0?p0.7 are the 8 i/o lines in port 0. p1 .0?p1.7 are the 8 i/o lines in port 1. p1.0?p1.3 are supported in the cy7c63001c. all i/o pins include bi t-programmable pull-up resistors. however, the sink current of each pin can be programmed to one of si xteen levels. besides functioning as gpio lines, each pin can be programmed as an interrupt input. the in terrupt is edge-triggered, with programmable polarity. d+, d? 2 pins. bidirectional usb data lines. an external pull-up resistor must be connected between the d pin and v cc to select low-speed usb operation. cext 1 pin. open-drain output with schmitt trigger input. the input is connected to a rising edge-triggered interrupt. cext may be connected to an external rc to genera te a wake-up from suspend mode. see section 6.4.
cy7c63001c cy7c63101c document #: 38-08026 rev. *b page 4 of 28 after reset address pc 0x0000 reset vector 0x0002 interrupt vector - 128 s 0x0004 interrupt vector - 1.024 ms 0x0006 interrupt vector - usb endpoint 0 0x0008 interrupt vector - usb endpoint 1 0x000a reserved 0x000c interrupt vector - gpio 0x000e interrupt vector - cext 0x0010 on-chip program memory 0x0fff 4k rom figure 6-1. program memory space
cy7c63001c cy7c63101c document #: 38-08026 rev. *b page 5 of 28 6.1.3 data memory organization the usb controller includes 128 bytes of data ram. the upper 16 bytes of the data memory are used as usb fifos for endpoint 0 and endpoint 1. each endpoint is associated with an 8-byte fifo. the usb controller includes two pointers into data ram, the program stack pointer (psp) and the data stack pointer (dsp). the value of psp after reset is 0x00. the psp incre- ments by 2 whenever a call instruction is executed and it decrements by 2 whenever a ret instruction is used. the dsp pre-decrements by 1 whenever a push instruction is executed and it increments by 1 after a pop instruction is used. the default value of the dsp after reset is 0x00, which would cause the first push to write into usb fifo space for endpoint 1. therefore, the dsp should be mapped to a location such as 0x70 before initiating any data stack opera- tions. refer to the reset sect ion for more information about dsp remapping after reset. figure 6-2 illustrates the data memory space. after reset address dsp psp 0x00 user firmware 0x02 0x04 dsp 0x70 usb fifo - endpoint 0 0x77 0x78 usb fifo - endpoint 1 0x7f figure 6-2. data memory space
cy7c63001c cy7c63101c document #: 38-08026 rev. *b page 6 of 28 6.2 i/o register summary i/o registers are accessed via the i/o read (iord) and i/o write (iowr, iowx) instructions. 6.3 reset the usb controller supports three types of resets. all registers are restored to their def ault states during a reset. the usb device address is set to 0 and all interrupts are disabled. in addition, the program stack pointer (psp) is set to 0x00 and the data stack pointer (dsp) is set to 0x00. the user should set the dsp to a location such as 0x70 to reserve 16 bytes of usb fifo space. the assembly instructions to do so are: mov a, 70h ; move 70 hex into accumulator, use 70 instead of 6f because the dsp is ; always decremented by 1 before the data transfer of the push instruction occurs swap a, dsp ; move accu mulator value into dsp the three reset types are: 1. power-on reset (por) 2. watch dog reset (wdr) 3. usb reset the occurrence of a reset is recorded in the status and control register located at i/o address 0xff ( figure 6-3 ). reading and writing this register ar e supported by the iord and iowr instructions. bits 1, 2, and 7 ar e reserved and must be written as zeros during a write. during a read, reserved bit positions should be ignored. bits 4, 5, and 6 are used to record the occurrence of por, usb, and wdr reset respectively. the firmware can interrogate these bits to determine the cause of a reset. if a watch dog reset o ccurs, firmware must clear the wdr bit (bit 6) in the status and control register to re-enable the usb transmitter (please re fer to the watch dog reset section for further details). bit 0, the ?run? control, is set to 1 at por. clearing this bit stop s the microcontroller (firmware normally should not clear this bit). once this bit is set to low, only a reset can set this bit high. the microcontroller resumes execution from rom address 0x00 after a reset unless the suspend bit (bit 3) of the status and control register is set. setting the suspend bit stops the clock oscillator and the interrupt timers and powers down the microcontroller. the detection of any usb activity, the occur- rence of a gpio interrupt, or the occurrence of the cext interrupt terminates the suspend condition. table 6-1. i/o register summary register name i/o address read/write function page p0 data 0x00 r/w general purpose i/o port (low current) 9 p1 data 0x01 r/w general purpose i/o port (high current) 9 p0 ie 0x04 w interrupt enable for port 0 pins 12 p1 ie 0x05 w interrupt enable for port 1 pins 12 p0 pull-up 0x08 w pull-up resist or control for port 0 pins 10 p1 pull-up 0x09 w pull-up resist or control for port 1 pins 10 ep0 tx config. 0x10 r/w usb endpoint 0 transmit configuration 15 ep1 tx config. 0x11 r/w usb endpoint 1 transmit configuration 15 usb da 0x12 r/w usb device address 14 usb scr 0x13 r/w usb status and control 16 ep0 rx status 0x14 r/w usb endpoint 0 receive status 14 gie 0x20 r/w global interrupt enable 11 wdt 0x21 w watch dog timer clear 7 cext 0x22 r/w external r-c timing circuit control 8 timer 0x23 r free-running timer 8 p0 isink 0x30-0x37 w input sink current control for port 0 pins. there is one isink register for each pin. address of the isink register for pin 0 is located at 0x30 and the register address for pin 7 is located at 0x37. 10 p1 isink 0x38-0x3f w input sink current control for port 1 pins. there is one isink register for each pin. address of the isink register for pin 0 is located at 0x38 and the register address for pin 7 is located at 0x3f. the number of port 1 pins depends on package type. 10 scr 0xff r/w processor status and control register 7
cy7c63001c cy7c63101c document #: 38-08026 rev. *b page 7 of 28 6.3.1 power-on reset (por) power-on reset (por) occurs every time the power to the device is switched on. bit 4 of the status and control register is set to record this event (the register contents are set to 00011001 by the por). the usb controller is placed in suspended mode at the end of por to conserve power (the clock oscillator, the timers, and the interrupt logic are turned off in suspend mode). after por, only a non-idle usb bus state terminates the suspend mode. the microcontroller then begins execution from rom address 0x00. 6.3.2 watch dog reset (wdr) the watch dog timer reset (wdr) occurs when the most significant bit of the 4-bit wa tch dog timer register transi- tions from low to high. writing any value to the write-only watch dog restart register at 0x21 clears the timer (firmware should periodically write to th e watch dog restart register in the ?main loop? of firmware). the watch dog timer is clocked by a 1.024-ms clock from the free-running timer. if 8 clocks occur between writes to the timer, a wdr occurs and bit 6 of the status and control register is set to record the event. a watch dog timer reset lasts for 8.192 ms, at which time the microcontroller begins execution at rom address 0x00. the usb transmitter is disabled by a watch dog reset because the usb device address register is cleared (otherwise, the usb controller would respond to all address 0 transactions). the transmitter remains disabled until the wdr bit (bit 6) in the status and control register is reset to 0 by firmware. 6.3.3 usb bus reset the usb controller recognizes a usb reset when a single ended zero (se0) condition persists for at least 8?16 s (the reset may be recognized for an se0 as short as 8 s, but it is always recognized for an se0 longer than 16 s). se0 is the condition in which both the d+ line and the d? line are low. bit 5 of the status and control register is set to record this event. if the usb reset happens while the device is suspended, the suspend conditi on is cleared and the clock oscillator is restarted. howeve r, the microcontroller is not released until the usb reset is removed. 6.4 instant-on feature (suspend mode) the usb controller can be placed in a low-power state by setting the suspend bit (bit 3) of the status and control register. all logic blocks in the device are turned off except the usb receiver, the gpio interrupt logic, and the cext interrupt logic. the clock oscillator and the free-running and watch dog timers are shut down. the suspend mode is terminated when one of the following three conditions occur: 1. usb activity 2. a gpio interrupt 3. cext interrupt the clock oscillator, gpio, and timers restart immediately upon exiting suspend mode. the usb engine and microcon- troller return to a fully functional state no more than 256 s later. before servicing any interrupt requests, the microcon- troller executes the instructio n following the i/o write that placed the device into suspend mode. both the gpio interrupt and the cext interrupt allow the usb controller to wake-up periodically and poll potentiometers, optics, and other system components while maintaining a very low average power consumption. the cext interrupt is preferred for lowest power consumption. for cext to generate an ?instant- on? interrupt, the pin must be connected to ground with an external capacitor and connected to v cc with an external resistor. a ?0? is written to the cext register located at i/o address 0x22 to discharge the capacitor. then, a ?1? is written to disable the open-drain output driver. a schmitt trigger input circuit monitors the input and generates a wake-up interrupt when the input voltage rises above the input threshold. by changing the va lues of the external resistor and capacitor, the user can fine tune the charge rate of the r-c timing circuit. the format of the cext register is shown in b7 b6 b5 b4 b3 b2 b1 b0 reserved wdr usbr por suspend reserved reserved run r/w r/w r/w r/w r/w 0 0 0 1 0 0 0 1 figure 6-3. status and control register (scr - address 0xff) last write to watchdog timer register no write to wdt register, so wdr goes high execution begins at reset vector 0x00 7.168 to 8.192 ms 8.192 ms figure 1. watch dog reset (wdr)
cy7c63001c cy7c63101c document #: 38-08026 rev. *b page 8 of 28 figure 6-4 . reading the register returns the value of the cext pin. during a reset, th e cext pin is high. 6.5 on-chip timer the usb controller is equipped with a free-running timer driven by a clock one-sixth the resonator frequency. bits 0 through 7 of the counter are rea dable from the read-only timer register located at i/o address 0x23. the timer register is cleared during a power-on reset and whenever suspend mode is entered. figure 6-5 illustrates the format of this register and figure 6-6 is its block diagram. with a 6 mhz resonator, the timer resolution is 1 s. the timer generates two interrupts: the 128- s interrupt and the 1.024-ms interrupt. b7 b6 b5 b4 b3 b2 b1 b0 reserved reserved reserved reserved reserved reserved reserved cext r/w 0 0 0 0 0 0 0 1 figure 6-4. the cext register (address 0x22) b7 b6 b5 b4 b3 b2 b1 b0 t. 7 t. 6 t. 5 t. 4 t. 3 t. 2 t. 1 t. 0 r r r r r r r r 0 0 0 0 0 0 0 0 figure 6-5. timer register (address 0x23) figure 6-6. timer block diagram 9 7 8 5 6 4 3 2 1 0 resonator clock/6 1.024-ms interrupt 128- s interrupt to timer register 8
cy7c63001c cy7c63101c document #: 38-08026 rev. *b page 9 of 28 6.6 general purpose i/o ports interface with peripherals is conducted via as many as 16 gpio signals. these signals are divided into two ports: port 0 and port 1. port 0 contains ei ght lines (p0.0?p0.7) and port 1 contains up to eight lines (p1. 0?p1.7). the number of external i/o pins depends on the package type. both ports can be accessed by the iord, iowr, and iowx instructions. the port 0 data register is locate d at i/o address 0x00 while the port 1 data register is located at i/o address 0x01. the contents of both registers are set high during a reset. refer to figures 6-7 and 6-8 for the formats of the data registers. in addition to supporting general input/output functions, each i/o line can trigger an interrupt to the microcontroller. please refer to the interrupt section for more details. each gpio line includes an internal r up resistor. this resistor provides both the pull-up function and slew control. two factors govern the enabling and disabling of each resistor: the state of its associated port pull-up register bit and the state of the data register bit. note: the control bits in the port pull-up register are active low. a gpio line is high when a ?1? is written to the data register and a ?0? is written to the res pective port pull-up register. writing a ?0? to the port data register disables the port?s pull-up resistor and outputs a low on the gpio line regardless of the setting in the port pull-up register. the output goes to a high-z state if the data register bit and the port pull-up register bit are both ?1?. figure 6-9 illustrates the block diagram of one i/o line. the port isink register is used to control the output current le vel and it is described later in this section. note: the isink logic block is turned off during suspend mode (please refer to the instant-on feature section for more details). therefore, to prevent higher i cc currents during usb suspend mode, firmware must set all port 0 and port 1 data register bits (which are not externally driven to a known state), including those that are not bonded out on a particular package , to ?1? and all port 0 and port 1 pull-up register data bits to ?0? to enable port pull-ups before setting the suspend bit (bit 3 of the status and control register). table 6-2 is the output control truth table. b7 b6 b5 b4 b3 b2 b1 b0 p0.7 p0.6 p0.5 p0.4 p0.3 p0.2 p0.1 p0.0 r/w r/w r/w r/w r/w r/w r/w r/w 1 1 1 1 1 1 1 1 figure 6-7. port 0 data register (address 0x00) b7 b6 b5 b4 b3 b2 b1 b0 p1.7 p1.6 p1.5 p1.4 p1.3 p1.2 p1.1 p1.0 r/w r/w r/w r/w r/w r/w r/w r/w 1 1 1 1 1 1 1 1 figure 6-8. port 1 data register (address 0x01) figure 6-9. block diagram of an i/o line gpio pin v cc isink dac port isink register port data register port pull-up register r up data bus schmitt trigger suspend bit disable
cy7c63001c cy7c63101c document #: 38-08026 rev. *b page 10 of 28 to configure a gpio pin as an input, a ?1? should be written to the port data register bit associated with that pin to disable the pull-down function of the isink dac (see figure 6-9 ).when the port data register is read, the bit value is a ?1? if the voltage on the pin is greater than the schmitt trigger threshold, or ?0? if it is below the thre shold. in applications where an internal pull-up is required, the r up pull-up resistor can be engaged by writing a ?0? to the appropriate bit in the port pull-up register. both port 0 and port 1 pull-up registers are write only (see figures 6-10 and 6-11 ). the port 0 pull-up register is located at i/o address 0x08 and port 1 pull-up register is mapped to address 0x09. the contents of the port pull-up registers are cleared during reset, allowing the outputs to be controlled by the state of the data registers. the port pull-up registers also select the polarity of transition that generates a gpio interrupt. a ?0? selects a high to low tr ansition while a ?1? selects a low to high transition. writing a ?0? to the data r egister drives the output low. instead of providing a fixed out put drive, the usb controller allows the user to select an output sink current level for each i/o pin. the sink current of each output is controlled by a dedicated port isink register. the lower four bits of this register contain a code selecting one of sixteen sink current levels. the upper four bits of the register are ignored. the format of the port isink register is shown in figure 6-12 . port 0 is a low-current port suitable for connecting photo transistors. port 1 is a high current port capable of driving leds. see section 8.0 for curr ent ranges. 0000 is the lowest drive strength. 1111 is the highest. the write-only sink current cont rol registers for port 0 outputs are assigned from i/o address 0x30 to 0x37 with the control bits for p00 starting at 0x30. port 1 sink current control registers are assigned from i/o address 0x38 to 0x3f with the control bits for p10 starting at 0x38. all sink current control registers are cleared during a reset, resulting in the minimum current sink setting. table 6-2. output control truth table data register port pull-up register output at i/o pin interrupt polarity 0 0 sink current (?0?) high to low 0 1 sink current (?0?) low to high 1 0 pull-up resistor (?1?) high to low 1 1 hi-z low to high b7 b6 b5 b4 b3 b2 b1 b0 pull0.7 pull0.6 pull0.5 pull0.4 pull0.3 pull0.2 pull0.1 pull0.0 w w w w w w w w 0 0 0 0 0 0 0 0 figure 6-10. port 0 pull-up register (address 0x08) b7 b6 b5 b4 b3 b2 b1 b0 pull1.7 pull1.6 pull1.5 pull1.4 pull1.3 pull1.2 pull1.1 pull1.0 w w w w w w w w 0x 0 0 0 0 0 0 0 figure 6-11. port 1 pull-up register (address 0x09) b7 b6 b5 b4 b3 b2 b1 b0 reserved reserved reserved unused isink3 isink2 isink1 isink0 w w w w w w w w x x x x x x x x figure 6-12. port isink register for one gpio line
cy7c63001c cy7c63101c document #: 38-08026 rev. *b page 11 of 28 6.7 xtalin/xtalout the xtalin and xtalout pins support connection of a 6-mhz ceramic resonator. the feedback capacitors and bias resistor are internal to the ic, as shown in figure 2 leave xtalout unconnected when driving xtalin from an external oscillator. 6.8 interrupts interrupts are generated by the general purpose i/o lines, the cext pin, the internal timer, and the usb engine. all interrupts are maskable by the global interrupt enable register. access to this register is accomplished via iord, iowr, and iowx instructions to address 0x20. writing a ?1? to a bit position enables the interrupt associated with that position. during a reset, the contents of the interrupt enable register are cleared, disabling all interrupts. figure 6-13 illustrates the format of the global inte rrupt enable register. the interrupt controller contains a separate latch for each interrupt. see figure 3 for the logic block diagram for the interrupt controller. when an interrupt is generated, it is latched as a pending interrupt. it stays as a pending interrupt until it is serviced or a reset occurs. a pending interrupt only generates an interrupt request if it is enabled in the global interrupt enable register. the highest priority interrupt request is serviced following the execution of the current instruction. when servicing an interrupt, the hardware first disables all interrupts by clearing the global interrupt enable register. next, the interrupt latch of the current interrupt is cleared. this is followed by a call instruction to the rom address associated with the interrupt being serviced (i.e., the interrupt vector). the instruction in the in terrupt table is typically a jmp instruction to the address of the interrupt service routine (isr). the user can re-enable interrupts in the interrupt service routine by writing to the appropri ate bits in the global interrupt enable register. interrupts can be nested to a level limited only by the available stack space. xtalout xtalin clk2x 30 pf 30 pf clock doubler clk1x (to microcontroller) (to usb sie) figure 2. clock oscillator on-chip circuit b7 b6 b5 b4 b3 b2 b1 b0 cextie gpioie reserved ep1ie ep0ie 1024ie 128ie reserved r/w r/w r/w r/w r/w r/w 0 0 0 0 0 0 0 0 figure 6-13. global interrupt enable register (gier - address 0x20) clr global interrupt interrupt acknowledge irq 128- s clr interrupt interrupt priority encoder enable [7:0] enable [1] dq logic 1 128- s interrupt enable register clr clr enable [6] dq gpio interrupt 128- s irq 1-ms clr 1-ms irq end p0 clr end p0 irq end p1 irq end p1 clr gpio clr gpio irq wake-up irq vector enable [7] cext clk clk logic 1 clr dq clk logic 1 wake-up clr figure 3. interrupt controller logic block diagram
cy7c63001c cy7c63101c document #: 38-08026 rev. *b page 12 of 28 the program counter (pc) value and the carry and zero flags (cf, zf) are automatically stored onto the program stack by the call instruction as part of the interrupt acknowledge process. the user firmware is responsible for ensuring that the processor state is preserved an d restored during an interrupt. for example the push a instruction should be used as the first command in the isr to save the accumulator value. and, the ipret instruction should be used to exit the isr with the accumulator value restored and interrupts enabled. the pc, cf, and zf are restored when t he ipret or ret instructions are executed. the interrupt vectors supported by the usb controller are listed in table 6-3 . interrupt vector 0 (reset) has the highest priority, interrupt vector 7 has the lowest priority. because the jmp instruction is 2 bytes long, the interrupt ve ctors occupy 2 bytes. 6.8.1 interrupt latency interrupt latency can be calculated from the following equation: interrupt latency = (number of clock cycles remaining in the current instruction) + (10 clock cycles for the call instructio n) + (5 clock cycles for the jmp instruction) for example, if a 5-clock-cycle in struction such as jc is being executed when an interrupt occurs, the first instruction of the interrupt service routine executes a minimum of 16 clock cycles (1+10+5) or a maximu m of 20 clock cycles (5+10+5) after the interrupt is issued. therefore, the interrupt latency in this example will be = 20 clock periods = 20 / (12 mhz) = 1.667 s. the interrupt latches are sampled at the rising edge of the last clock cycle in the current instruction. 6.8.2 gpio interrupt the general purpose i/o interrupts are generated by signal transitions at the port 0 and po rt 1 i/o pins. gpio interrupts are edge sensitive with progra mmable interrupt polarities. setting a bit high in the port pull-up register (see figure 6-10 and 6-11 ) selects a low to high interrupt trigger for the corresponding port pin. setting a bit low activates a high to low interrupt trigger. each gpio interrupt is maskable on a per-pin basis by a dedicated bit in the port interrupt enable register. writing a ?1? enables the interrupt. figure 6-14 and figure 6-15 illustrate the format of the port interrupt enable registers for po rt 0 and port 1 located at i/o address 0x04 and 0x05 respectively. these write only registers are cleared during reset, thus disabling all gpio interrupts. a block diagram of the gpio interrupt logic is shown in figure 6-16 . the bit setting in the port pull-up register selects the interrupt polarity. if the selected signal polarity is detected on the i/o pin, a high signal is generated. if the port interrupt enable bit for this pin is high and no other port pins are requesting interrupts, the or gate issues a low to high signal to clock the gpio interrupt flip-flop. the output of the flip-flop is further qualified by the global gpio interrupt enable bit before it is processed by the interrupt priority encoder. both the gpio interrupt flip-flop and the global gpio enable bit are cleared by on-chip hardware during gpio interrupt acknowledge. table 6-3. interrupt vector assignments interrupt priority rom address function 0 (highest) 0x00 reset 1 0x02 128- s timer interrupt 2 0x04 1.024-ms timer interrupt 3 0x06 usb endpoint 0 interrupt 4 0x08 usb endpoint 1 interrupt 5 0x0a reserved 6 0x0c gpio interrupt 7 (lowest) 0x0e wake-up interrupt b7 b6 b5 b4 b3 b2 b1 b0 ie0.7 ie0.6 ie0.5 ie0.4 ie0.3 ie0.2 ie0.1 ie0.0 w w w w w w w w 0 0 0 0 0 0 0 0 figure 6-14. port 0 interrupt enable register (p0 ie - address 0x04) b7 b6 b5 b4 b3 b2 b1 b0 ie1.7 ie1.6 ie1.5 ie1.4 ie1.3 ie1.2 ie1.1 ie1.0 w w w w w w w w 0 0 0 0 0 0 0 0 figure 6-15. port 1 interrupt enable register (p1 ie - address 0x05)
cy7c63001c cy7c63101c document #: 38-08026 rev. *b page 13 of 28 note: if one port pin triggers an interrupt, no other port pin can cause a gpio interrupt until the port pin that triggered the interrupt has returned to its inac tive (non-trigger) state or until its corresponding port interrupt enable bit is cleared (these events ?reset? the clock of the gpio interrupt flip-flop, which must be ?reset? to ?0? before a nother gpio interrupt event can ?clock? the gpio interrupt flip-flop and produce an irq). note: if the port pin that triggered an interrupt is held in its active (trigger) state while its corresponding port interrupt enable bit is cleared and then set, a gpio interrupt event occurs as the gpio interrupt flip-flop clock transitions from ?1? to ?0? and then back to ?1? (please refer to figure 6-16 ). the usb controller does not assign interrupt priority to different port pins and the port interrupt enable registers are not cleared during the interrupt acknowledge process. when a gpio interrupt is serviced, the isr must poll the ports to determine which pin caused the interrupt. 6.8.3 usb interrupt a usb endpoint 0 interrupt is generated after the host has written data to endpoint 0 or after the usb controller has transmitted a packet from endpoint 0 and receives an ack from the host. an out packet fr om the host which is naked by the usb controller does not generate an interrupt. this interrupt is masked by the usb ep0 interrupt enable bit (bit 3) of the global interrupt enable register. a usb endpoint 1 interrupt is generated after the usb controller has transmitted a packet from endpoint 1 and has received an ack from the host. this interrupt is masked by the usb ep1 interrupt enable bit (bit 4) of the global interrupt enable register. 6.8.4 timer interrupt there are two timer interrupts: the 128- s interrupt and the 1.024-ms interrupt. they are masked by bits 1 and 2 of the global interrupt enable register respectively. the user should disable both timer interrupts before going into the suspend mode to avoid possible conflicts from timer interrupts occurring just as suspend mode is entered. 6.8.5 wake-up interrupt a wake-up interrupt is generated when the cext pin goes high. this interrupt is latched in the interrupt controller. it can be masked by the wake-up interrupt enable bit (bit 7) of the global interrupt enable register. this interrupt can be used to perform periodic checks on attached peripherals when the usb controller is placed in the low-power suspend mode. see the instant-on feature section for more details. 6.9 usb engine the usb engine includes the serial interface engine (sie) and the low-speed usb i/o transceivers. the sie block performs most of the usb interface functions with only minimal support from the microcontroller core. two endpoints are supported. endpoint 0 is used to receive and transmit control (including setup) packets while endpoint 1 is only used to transmit data packets. the usb sie processes usb bus activity at the transaction level independently. it does all the nrzi encoding/decoding and bit stuffing/unstuffing. it also determines token type, checks address and endpoint va lues, generates and checks crc values, and controls the flow of data bytes between the bus and the endpoint fifos. note: the sie stalls the cpu for 3 cycles per byte when writing da ta to the endpoint fifos (or 3 * 1/12 mhz * 8 bytes = 2 s per 8-byte transfer). the firmware handles higher level and function-specific tasks. during control transfers the firmware must interpret device requests and respond correctly. it also must coordinate suspend/resume, verify and select data toggle values, and perform function specific tasks. the usb engine and the firmware communicate though the endpoint fifos, usb endpoint interrupts, and the usb registers described in the sections below. figure 6-16. gpio interrupt logic block diagram port pull-up register 1=l h 0=h l or gate gpio interrupt flip-flop clr gpio pin 1 = enable 0 = disable port interrupt enable register 1 = enable 0 = disable interrupt acknowledge interrupt priority encoder irq interrupt vector d q clr m u x i (1 input per gpio pin) global gpio interrupt enable (bit 6, register 0x20)
cy7c63001c cy7c63101c document #: 38-08026 rev. *b page 14 of 28 6.9.1 usb enumeration process the usb controller provides a usb device address register at i/o location 0x12. reading and writing this register is achieved via the iord and iowr instructions. the register contents are cleared during a reset, setting the usb address of the usb controller to 0. figure 6-17 shows the format of the usb address register. typical enumeration steps: 1. the host computer sends a setup packet followed by a data packet to usb address 0 requesting the device descriptor. 2. the usb controller decodes the request and retrieves its device descriptor from the program memory space. 3. the host computer performs a control read sequence and the usb controller responds by sending the device descriptor over the usb bus. 4. after receiving the descriptor, the host computer sends a setup packet followed by a data packet to address 0 assigning a new usb address to the device. 5. the usb controller stores the new address in its usb device address register after the no-data control sequence completes. 6. the host sends a request for the device descriptor using the new usb address. 7. the usb controller decodes the request and retrieves the device descriptor from the program memory. 8. the host performs a control read sequence and the usb controller responds by sending its device descriptor over the usb bus. 9. the host generates control reads to the usb controller to request the configuration and report descriptors. 10.the usb controller retrie ves the descriptors from its program space and returns the data to the host over the usb. 11.enumeration is complete after the host has received all the descriptors. 6.9.2 endpoint 0 all usb devices are required to have an endpoint number 0 that is used to initialize and manipulate the device. endpoint 0 provides access to the device?s configuration information and allows generic usb status and control accesses. endpoint 0 can receive and transmit data. both receive and transmit data share the same 8- byte endpoint 0 fifo located at data memory space 0x70 to 0x77. received data may overwrite the data prev iously in the fifo. 6.9.2.1 endpoint 0 receive after receiving a packet and placing the data into the endpoint 0 fifo, the usb controller updates the usb endpoint 0 rx register to record the receive status and then generates a usb endpoint 0 interrupt. the format of the endpoint 0 rx register is shown in figure 6-18 . this is a read/write register located at i/o address 0x14. any write to this register clears all bits except bit 3 which remains unchanged. all bits are cleared during reset. bit 0 is set to 1 when a setup token for endpoint 0 is received. once set to a 1, this bit remains high until it is cleared by an i/o write or a reset. while the data following a setup is being received by the usb engine, this bit is not cleared by an i/o write. user firmware writes to the usb fifos are disabled when bit 0 is set. this prevents setup data from being overwritten. bits 1 and 2 are updated whenever a valid token is received on endpoint 0. bit 1 is set to 1 if an out token is received and cleared to 0 if any other token is received. bit 2 is set to 1 if an in token is received and cleared to 0 if any other token is received. bit 3 shows the data toggle status of data packets received on endpoint 0. this bit is updated for data following setup tokens and for data following out tokens if stall (bit 5 of 0x10) is not set and either enableouts or statusouts (bits 3 and 4 of 0x13) are set. bits 4 to 7 are the count of th e number of bytes received in a data packet. the two crc bytes are included in the count, so the count value is two greater than the number of data bytes received. the count is always updated and the data is always stored in the fifo for data packets following a setup token. the count for data following an out token is updated if stall (bit 5 of 0x10) is 0 and either enableouts or statusouts (bits 3 and 4 of 0x13) are 1. the data following an out is written into the fifo if enableouts is set to 1 and stall and statusouts are 0. b7 b6 b5 b4 b3 b2 b1 b0 reserved adr6 adr5 adr4 adr3 adr2 adr1 adr0 r/w r/w r/w r/w r/w r/w r/w 0 0 0 0 0 0 0 0 figure 6-17. usb device address register (usb da - address 0x12) b7 b6 b5 b4 b3 b2 b1 b0 count3 count2 count1 count0 toggle in out setup r/w r/w r/w r/w r r/w r/w r/w 0 0 0 0 0 0 0 0 figure 6-18. usb endpoint 0 rx register (address 0x14)
cy7c63001c cy7c63101c document #: 38-08026 rev. *b page 15 of 28 a maximum of 8 bytes are written into the endpoint 0 fifo. if there are less than 8 bytes of data the crc is written into the fifo. due to register space limitations , the receive data invalid bit is located in the usb endpoint 0 tx configuration register. refer to the endpoint 0 transmit section for details. this bit is set by the sie if an error is de tected in a received data packet. table 6-4 summarizes the usb engine response to setup and out transactions on endpoint 0. in the data packet column ?error? represents a packet with a crc, pid or bit-stuffing error, or a packet with more than 8 bytes of data. ?valid? is a packet without an error. ?status? is a packet that is a valid control read status stage, while ?n/status? is not a correct status stage (see section 6.9.4). the ?stall? bit is described in section 6.9. 2.2. the ?statusouts? and ?enableouts? bits are described in section 6.9.4. 6.9.2.2 endpoint 0 transmit the usb endpoint 0 tx register located at i/o address 0x10 controls data transmission from endpoint 0 (see figure 6-19 ). this is a read/write register. al l bits are cleared during reset. bits 0 to 3 indicate the numbers of data bytes to be transmitted during an in packet, valid values are 0 to 8 inclusive. bit 4 indicates that a received data packet error (crc, pid, or bitstuffing error) occurred during a setup or out data phase. setting the stall bit (bit 5) stal ls in and out packets. this bit is cleared whenever a setup packet is received by endpoint 0. bit 6 (data 1/0) must be set to 0 or 1 to select the data packet?s toggle state (0 for data0, 1 for data1). after the transmit data has been loaded into the fifo, bit 6 should be set according to the data toggle state and bit 7 set to ?1?. this enables the usb controller to respond to an in packet. bit 7 is cleared and an endpoint 0 interrupt is generated by the sie once the host acknowledges the data transmission. bit 7 is also cleared when a setup token is received. the interrupt service routine can check bit 7 to confirm that the data tr ansfer was successful. 6.9.3 endpoint 1 endpoint 1 is capable of transmit only. the data to be trans- mitted is stored in the 8-byte endpoint 1 fifo located at data memory space 0x78 to 0x7f. 6.9.3.1 endpoint 1 transmit transmission is controlled by the usb endpoint 1 tx register located at i/o address 0x11 (see figure 6-20 ). this is a read/write register. all bits are cleared during reset. table 6-4. usb engine response to setup and out transactions on endpoint 0 control bit settings received packets usb engine response stall status out enable out token type data packet fifo write toggle update count update interrupt reply - - - setup valid yes yes yes yes ack - - - setup error yes yes yes yes none 0 0 1 out valid yes yes yes yes ack 0 0 1 out error yes yes yes yes none 0 0 0 out valid no no no no nak 0 0 0outerrornononononone 1 0 0 out valid no no no no stall 1 0 0outerrornononononone 0 1 0 out status no yes yes yes ack 0 1 0 out n/status no yes yes yes stall 0 1 0 out error no yes no no none b7 b6 b5 b4 b3 b2 b1 b0 inen data1/0 stall err count3 count2 count1 count0 r/w r/w r/w r/w r/w r/w r/w r/w 0 0 0 0 0 0 0 0 figure 6-19. usb endpoint 0 tx configuration register (address 0x10) b7 b6 b5 b4 b3 b2 b1 b0 inen data1/0 stall ep1en count3 count2 count1 count0 r/w r/w r/w r/w r/w r/w r/w r/w 0 0 0 0 0 0 0 0 figure 6-20. usb endpoint 1 tx configuration register (address 0x11)
cy7c63001c cy7c63101c document #: 38-08026 rev. *b page 16 of 28 bits 0 to 3 indicate the numbers of data bytes to be transmitted during an in packet, valid values are 0 to 8 inclusive. bit 4 must be set before endpoint 1 can be used. if this bit is cleared, the usb controller ignores all traffic to endpoint 1. setting the stall bit (bit 5) stalls in and out packets until this bit is cleared. bit 6 (data 1/0) must be set to either 0 or 1 depending on the data packet?s toggle state, 0 for data0, 1 for data1. after the transmit data has been loaded into the fifo, bit 6 should be set according to the data toggle state and bit 7 set to ?1?. this enables the usb controller to respond to an in packet. bit 7 is cleared a nd an endpoint 1 interrupt is generated by the sie once the host acknowledges the data transmission. 6.9.4 usb status and control usb status and control is regulated by usb status and control register located at i/o address 0x13 as shown in figure 6-21 . this is a read/write re gister. all reserved bits must be written to zero. all bits in the register are cleared during reset. bit 0 is set by the sie if any usb activity except idle (d+ low, d? high) is detected. the user program should check and clear this bit periodically to detect any loss of bus activity. writing a 0 to this bit clears it. writing a 1 does not change its value. bit 1 is used to force the on-chip usb transmitter to the k state which sends a resume signal to the host. bit 2 is used to force the transmitter to the j state. this bit should normally be set to zero. however, for resume signaling, force a j state for one instruction before forcing resume. bit 3 is used to automatically respond to the status stage out of a control read transfer on endpoint 0. a valid status stage out contains a data1 packet with 0 bytes of data. if the statu- souts bit is set, the usb engine responds to a valid status stage out with an ack, and any other out with a stall. the data is not written into the fifo when this bit is set. this bit is cleared when a setup token is received by endpoint 0. bit 4 is used to enable the receiving of endpoint 0 out packets. when this bit is set to 1, the data from an out trans- action is written into the endpoint 0 fifo. if this bit is 0, data is not written to the fifo and the sie responds with a nak. this bit is cleared following a setup or acked out trans- action. note: after firmware decodes a setup packet and prepares for a subsequent out transaction by setting bit 4, bit 4 is not cleared until the hand-shake phase of an acked out transaction (a naked out transaction does not clear this bit). b7 b6 b5 b4 b3 b2 b1 b0 reserved reserved reserved enouts statouts forcej forcek busact r/w r/w r/w r/w 0 0 0 0 0 0 0 0 figure 6-21. usb status and control register (usb scr - address 0x13)
cy7c63001c cy7c63101c document #: 38-08026 rev. *b page 17 of 28 6.10 usb physical layer characteristics the following section describes the cy7c630/101c compliance to the chapter 7 electrical section of the usb specification, revision 1.1. the section contains all signaling, power distribution, and physical layer specifications necessary to describe a low- speed usb function. 6.10.1 low-speed driver characteristics the cy7c630/101c devices use a differential output driver to drive the low-speed usb data signal onto the usb cable, as shown in figure 6-22 . the output swings between the differ- ential high and low state are well balanced to minimize signal skew. slew rate control on the driver minimizes the radiated noise and cross talk on the usb cable. the driver?s outputs support three-state oper ation to achieve bidirectional half duplex operation. the cy 7c630/101c driver tolerates a voltage on the signal pins of ?0.5v to 3.8v with respect to local ground reference without damage. the driver tolerates this voltage for 10.0 s while the driver is active and driving, and tolerates this condition indefinitely when the driver is in its high-impedance state. a low-speed usb connection is made through an unshielded, untwisted wire cable a maximum of 3 meters in length. the rise and fall time of the signals on this cable are well controlled to reduce rfi emissions while limiting delays, signaling skews and distortions. the cy7c630/101c driver reaches the specified static signal levels with smooth rise and fall times, resulting in minimal reflections and ringing when driving the usb cable. this cable and driv er are intended to be used only on network segments between low-speed devices and the ports to which they are connected. 6.10.2 receiver characteristics the cy7c630/101c has a differential input receiver which is able to accept the usb data signal. the receiver features an input sensitivity of at least 200 mv when both differential data inputs are in the range of at le ast 0.8v to 2.5v with respect to its local ground reference. this is the common mode input voltage range. proper data reception is also guaranteed when the differential data lines are outside the common mode range, as shown in figure 6-23 . the receiver tolerates static input voltages between ?0.5v and 3.8v with respect to its local ground reference without damage. in addition to the differ- ential receiver, there is a single-ended receiver for each of the two data lines. the single-ended receivers have a switching threshold between 0.8v and 2.0v (ttl inputs). figure 6-22. low-speed driver signal waveforms v ss signal pins pass output spec levels with minimal reflections and ringing one bit time (1.5mb/s) driver signal pins v se (max) v se (min) figure 6-23. differential input sensit ivity over entire common mode range 0.0 0.2 0.4 0.6 0.8 1.0 0.0 0.2 0.4 0.6 0.8 1.0 1.2 1.4 1.6 1.8 2.0 2.2 2.4 2.6 2.8 3.0 3.2 common mode in p ut volta g e ( volts ) minimum differential sensitivity (volts)
cy7c63001c cy7c63101c document #: 38-08026 rev. *b page 18 of 28 6.11 external usb pull-up resistor the usb system specifies that a pull-up resistor be connected on the d? pin of low-speed peripherals as shown in figure 6-24 . to meet the usb 1.1 spec (section 7.1.6), which states that the term ination must charge the d? line from 0 to 2.0v in 2.5 s, the total load capacitance on the d+/d? lines of the low-speed usb device (cypress device capacitance + pcb trace capacitance + integrated cable capacitance) must be less than 250 pf. as cypress d+/d? transceiver input capacitance is 20 pf max, up to 230 pf of capacitance is allowed for in the low speed device?s integrated cable and pcb. if the cable + pcb capacitance on the d+/d? lines will be greater than approximately 230 pf, an external 3.3v regulator must be used as shown in figure 6-25 . 7.5kw 1% usb connector port0 port1 vss vpp xtalin port0 port1 d? d+ vcc xtalout cext 6-mhz switches, devices, etc. switches, devices, etc. for cext wake-up mode 0.1 f resonator 4.7 f +4.35v (min) figure 6-24. application showing 7.5k ? 1% pull-up resistor 1.5 kw usb connector port0 port1 v ss v pp xtalin port0 port1 d? d+ v cc xtalout cext 6-mhz switches, devices, etc. switches, devices, etc. for cext wake-up mode 0.1 f resonator 4.7 f 3.3v reg +3.3v 0.1 f +4.35v (min.) figure 6-25. application showing 1.5-k ? 5% pull-up resistor
cy7c63001c cy7c63101c document #: 38-08026 rev. *b page 19 of 28 6.12 instruction set summary table 6-5. instruction set map mnemonic operand opcode cycles mnemonic operand opcode cycles halt 00 7 nop 20 4 add a,expr data 01 4 inc a acc 21 4 add a,[expr] direct 02 6 inc x x 22 4 add a,[x+expr] index 03 7 inc [expr] direct 23 7 adc a,expr data 04 4 inc [x+expr] index 24 8 adc a,[expr] direct 05 6 dec a acc 25 4 adc a,[x+expr] index 06 7 dec x x 26 4 sub a,expr data 07 4 dec [expr] direct 27 7 sub a,[expr] direct 08 6 dec [x+expr] index 28 8 sub a,[x+expr] index 09 7 iord expr address 29 5 sbb a,expr data 0a 4 iowr expr address 2a 5 sbb a,[expr] direct 0b 6 pop a 2b 4 sbb a,[x+expr] index 0c 7 pop x 2c 4 or a,expr data 0d 4 push a 2d 5 or a,[expr] direct oe 6 push x 2e 5 or a,[x+expr] index 0f 7 swap a,x 2f 5 and a,expr data 10 4 swap a,dsp 30 5 and a,[expr] direct 11 6 mov [expr],a direct 31 5 and a,[x+expr] index 12 7 mov [x+expr],a index 32 6 xor a,expr data 13 4 or [expr],a direct 33 7 xor a,[expr] direct 14 6 or [x+expr],a index 34 8 xor a,[x+expr] index 15 7 and [expr],a direct 35 7 cmp a,expr data 16 5 and [x+expr],a index 36 8 cmp a,[expr] direct 17 7 xor [expr],a direct 37 7 cmp a,[x+expr] index 18 8 xor [x+expr],a index 38 8 mov a,expr data 19 4 iowx [x+expr] index 39 6 mov a,[expr] direct 1a 5 cpl 3a 4 mov a,[x+expr] index 1b 6 asl 3b 4 mov x,expr data 1c 4 asr 3c 4 mov x,[expr] direct 1d 5 rlc 3d 4 ipret addr 1e 13 rrc 3e 4 xpage 1f 4 ret 3f 8 jmp addr 8x 5 jc addr cx 5 call addr 9x 10 jnc addr dx 5 jz addr ax 5 jacc addr ex 7 jnz addr bx 5 index addr fx 14
cy7c63001c cy7c63101c document #: 38-08026 rev. *b page 20 of 28 7.0 absolute maximum ratings storage temperature ............. .............. ...... ?65c to +150c ambient temperature with power applied ...... ?0c to +70c supply voltage on v cc relative to v ss ......... ?0.5v to +7.0v dc input voltage................................... ?0.5v to +v cc +0.5v dc voltage applied to outputs in high-z state ?0.5v to +v cc +0.5v max. output current into port 1 pins ...........................60 ma max. output current into non-port 1 pins .................. 10 ma power dissipation ................... ..................................300 mw static discharge voltage ...........................................>2000v latch-up current [1] .................................................. >200 ma 8.0 electrical characteristics f osc = 6 mhz; operating temperature = 0 to 70c, v cc = 4.0 to 5.25 volts parameter min max units conditions general i cc v cc operating supply current 25 ma i sb1 supply current?suspend mode 20 a resonator off, d? > voh min [2] i sb2 supply current?start-up mode 4 ma v pp programming voltage (disabled) ?0.4 0.4 v t start resonator start-up interval 256 s ceramic resonator t watch watch dog timer period 7.168 8.192 ms power on reset t vccs v cc slew 0.010 1000 ms linear ramp on v cc pin to v cc [3, 4] usb interface v oh static output high 2.8 3.6 v 15k ? 5% to gnd [5,6] v ol static output low 0.3 v see notes 5 and 6 v di differential input sensitiv ity 0.2 v |(d+)?(d?)|, and figure 6-23 v cm differential input common mode range 0.8 2.5 v figure 6-23 v se single ended receiver threshold 0.8 2.0 v c in transceiver input capacitance 20 pf d+ to vss; d- to vss i lo data line (d+, d?) leakage ?10 10 a 0 v <(d+, d?)<3.3 v, hi-z state r pu1 external bus pull-up resistance, d? pin 1.425 1.575 k ? 1.5 k ? 5% to 3.3v supply r pu2 external bus pull-up resistance, d? pin 7.425 7.575 k ? 7.5 k ? 1% to vcc [7] r pd external bus pull-down resistance 14.25 15.75 k ? 15 k ? 5% notes: 1. all pins specified for >200 ma positive and negative injection, except p1.0 is specified for >50 ma negative injection. 2. cext at v cc or gnd, port 0 and port1 at v cc . 3. part powers up in suspend mode, able to be reset by usb bus reset. 4. por may re-occur whenever v cc drops to approximately 2.5v. 5. level guaranteed for range of v cc = 4.35v to 5.25v. 6. with r pu1 of 1.5 kw 5% on d? to 3.3v regulator. 7. maximum matched c apacitive loadi ng allowed on d+ and d? (inc luding usb cable and host/hub) is approximately 230 pf.
cy7c63001c cy7c63101c document #: 38-08026 rev. *b page 21 of 28 general purpose i/o interface r up pull-up resistance 8 24 k ? i sink0(0) port 0 sink current (0), lowest curre nt 0.1 0.3 ma vout = 2.0v dc, port 0 only [5] i sink0(f) port 0 sink current (f), highest curr ent 0.5 1.5 ma vout = 2.0v dc, port 0 only [5] i sink1(0) port 1 sink current (0), lowest curre nt 1.6 4.8 ma vout = 2.0v dc, port 1 only [5] i sink1(f) port 1 sink current (f), highest current 8 5 24 ma ma vout = 2.0v dc, port 1 only [5] vout = 0.4v dc, port 1 only [5] i range sink current max./min. 4.5 5.5 vout = 2.0v dc, port 0 or 1 [5, 8] i lin differential nonlinearity 0.5 l sb port 0 or port 1 [9] t ratio tracking ratio port1 to port0 14.4 19.6 vout = 2.0v [10] t sink current sink response time 0.8 s full scale transition i max port 1 max sink current 60 ma summed over all port 1 bits p max port 1 & cext sink mode dissipation 25 mw per pin v ith input threshold voltage 45% 65% v cc all ports and cext [11] v h input hysteresis voltage 6% 12% v cc port 0 and port 1 [12] v hcext input hysteresis voltage, cext 12% 30% v cc cext pin only [12] iin input leakage current, gpio pins ?1 1 a port 0 and port 1, vout = 0 or v cc [13] i incx input leakage current, cext pin 50 na v cext = 0 or v cc i cext sink current, cext pin 6 18 ma v cext = v cc v ol1 output low voltage, cext pin 0.4 v v cc = min., i ol = 2 ma v ol2 output low voltage, cext pin 2.0 v v cc = min., i ol = 5 ma notes: 8. i range = i sink(f) /i sink(0 ) for each port 0 or 1 output. 9. measured as largest step size vs. nominal according to measured full scale and zero programmed values. 10. t ratio = i sink1(n) /i sink0(n) for the same n. 11. low to high transition. 12. this parameter is guaranteed, but not tested. 13. with ports configured in hi-z mode. 8.0 electrical characteristics (continued) f osc = 6 mhz; operating temperature = 0 to 70c, v cc = 4.0 to 5.25 volts parameter min max units conditions
cy7c63001c cy7c63101c document #: 38-08026 rev. *b page 22 of 28 9.0 switching characteristics notes: 14. c load of 200 (75 ns) to 600 pf (300 ns). 15. measured at crossover point of differential data signals. parameter description min. max. unit conditions clock t cyc input clock cycle time 166.67 166.67 ns t ch clock high time 0.45 t cyc ns t cl clock low time 0.45 t cyc ns usb driver characteristics t r usb data transition rise time 75 300 ns see notes 5, 6, and 14 t f usb data transition fall time 75 300 ns see notes 5, 6, and 14 t rfm rise/fall time matching 80 125 % t r /t f v crs output signal crossover voltage 1.3 2.0 v see note 5 usb data timing t drate low speed data rate 1.4775 1.5225 mb/s ave. bit rate (1.5 mb/s 1.5%) t djr1 receiver data jitter tolerance ?75 75 ns to next transition, figure 9-3 [15] t djr2 receiver data jitter tolerance ?45 45 ns for paired transitions, figure 9-3 [15] t deop differential to eop transition skew ?40 100 ns figure 9-4 [15] t eopr eop width at receiver 670 ns accepts as eop [15] t lst width of se0 interval during differential transition 210 ns t eopt source eop width 1.25 1.50 s t udj1 differential driver jitter ?95 95 ns to next transition, figure 9-5 t udj2 differential driver jitter ?150 150 ns to paired transition, figure 9-5
cy7c63001c cy7c63101c document #: 38-08026 rev. *b page 23 of 28 figure 9-1. clock timing clock t cyc t cl t ch figure 9-2. usb data signal timing and voltage levels 90% 10% 90% 10% d ? d + t r t f v crs v oh v ol figure 9-3. receiver jitter tolerance differential data lines paired transitions n * t period + t jr2 t period consecutive transitions n * t period + t jr1 t jr t jr1 t jr2
cy7c63001c cy7c63101c document #: 38-08026 rev. *b page 24 of 28 figure 9-4. differential to eop transition skew and eop width t period differential data lines crossover point crossover point extended source eop width: t eopt receiver eop width: t eopr1 , t eopr2 diff. data to se0 skew n * t period + t deop figure 9-5. differ ential data jitter t period differential data lines crossover points paired transitions n * t period + t xjr2 consecutive transitions n * t period + t xjr1 10.0 ordering information ordering code eprom size number of gpio package name package type operating range cy7c63001c-pxc 4kb 12 p5 20-pin (300-mil) pdip lead-free commercial cy7c63001c-sxc 4kb 12 s5 20-pin (300-mil) soic lead-free commercial CY7C63001C-SXCT 4kb 12 s5 20-pin (300-mil) soic lead-free tape reel commercial cy7c63101c-qxc 4kb 16 q13 24-pin (150-mil) qsop lead-free commercial cy7c63001c-xc 4kb 16 - die form lead-free commercial
cy7c63001c cy7c63101c document #: 38-08026 rev. *b page 25 of 28 11.0 package diagrams 51-85011-*a 20-lead (300-mil) molded dip p5 24-lead quarter size outline q13 51-85055-*b
cy7c63001c cy7c63101c document #: 38-08026 rev. *b page 26 of 28 11.0 package diagrams (continued) pin1id seating plane 0.497[12.623] 0.513[13.030] 1 10 11 20 * * * dimensions in inches [mm] min. max. 0.291[7.391] 0.300[7.620] 0.394[10.007] 0.419[10.642] 0.050[1.270] typ. 0.092[2.336] 0.105[2.667] 0.004[0.101] 0.0118[0.299] 0.0091[0.231] 0.0125[0.317] 0.015[0.381] 0.050[1.270] 0.013[0.330] 0.019[0.482] 0.026[0.660] 0.032[0.812] 0.004[0.101] reference jedec mo-119 part # s20.3 standard pkg. sz20.3 lead free pkg. package weight 0.55 gms 51-85024-*b 20-lead (300-mil) soic s5 pin 1 id seating plane 0.597[15.163] 0.615[15.621] 24 lead (300 mil) soic - s13 1 12 13 24 * * * dimensions in inches[mm] min. max. 0.291[7.391] 0.300[7.620] 0.394[10.007] 0.419[10.642] 0.050[1.270] typ. 0.092[2.336] 0.105[2.667] 0.004[0.101] 0.0118[0.299] 0.0091[0.231] 0.0125[0.317] 0.015[0.381] 0.050[1.270] 0.013[0.330] 0.019[0.482] 0.026[0.660] 0.032[0.812] 0.004[0.101] reference jedec mo-119 part # s24.3 standard pkg. sz24.3 lead free pkg. package weight 0.65gms 51-85025-*b 24-lead (300-mil) soic s13
cy7c63001c cy7c63101c document #: 38-08026 rev. *b page 27 of 28 ? cypress semiconductor corporation, 2005. the information contained herein is subject to change without notice. cypress semic onductor corporation assumes no responsibility for the use of any circuitry other than circuitry embodied in a cypress product. nor does it convey or imply any license under patent or ot her rights. cypress products are not warranted nor intended to be used for medical, life support, life saving, critical control or safety applications, unless pursuant to an express written agr eement with cypress. furthermore, cypress does not authorize its products for use as critical components in life-support systems where a malfunction or failure may reasonably be expected to re sult in significant injury to the user. the inclusion of cypress products in life-support systems application implies that the manu facturer assumes all risk of such use and in doing so indemni fies cypress against all charges. table 11-1 below shows the die pad coordinates for the cy7c63001c-xc. the center location of each bond pad is relative to the bottom left corner of the die which has coordinate (0,0). instant-on now is a trademark of cypress semiconductor cor poration. all products and company names mentioned in this document may be the trademarks of their respective holders. 11.0 package diagrams (continued) 8 5 6 7 die form 4321 24 23 22 21 17 20 19 18 13 14 15 16 910 11 12 y x (0,0) table 11-1. cy7c63001c-xc probe pad coordinates in microns ((0,0) to bond pad centers) pad # pin name x (microns) y (microns) pad # pin name x (microns) y (microns) 1 port00 676.00 2325.40 13 xtlout 794.85 121.80 2 port01 507.35 2325.40 14 vcc 1033.55 121.80 3 port02 338.70 2325.40 15 d- 1129.75 121.80 4 port03 170.05 2325.40 16 d+ 1451.70 121.80 5 port10 120.10 2132.30 17 port17 1446.10 1595.80 6 port12 120.10 1962.90 18 port15 1446.10 1765.20 7 port14 120.10 1765.20 19 port13 1446.10 1962.90 8 port16 120.10 1595.80 20 port11 1446.10 2132.30 9 vss 148.50 121.80 21 port07 1395.65 2325.40 10 vpp 278.30 121.80 22 port06 1227.00 2325.40 11 cext 414.25 121.80 23 port05 1058.35 2325.40 12 xtalin 653.45 121.80 24 port04 889.7 2325.40
cy7c63001c cy7c63101c document #: 38-08026 rev. *b page 28 of 28 document history page document title: cy7c63001c, cy7c63101c universal serial bus microcontroller document number: 38-08026 rev. ecn no. issue date orig. of change description of change ** 116223 06/12/02 dsg change from spec number: 38-00662 to 38-08026 *a 276070 see ecn bon added die form and bond pad information. added lead free packages. removed obsolete packages and their references *b 408068 see ecn tyj 128-ms timer interrupts corrected to 128- s interrupts part ordering information updated - t able 10.0. type a updated with type c data-sheet header changed to cy7c63001c, cy7c63101c


▲Up To Search▲   

 
Price & Availability of CY7C63001C-SXCT

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X